<template>
	<view class="zone">
		<view class="header u-flex-between" v-if="list.length > 0">
			<view class="li" v-for="(item,index) in list" :key="index"
				@click="$emit('detail',`/subPackages/medical-cosmetology-zone/detail?zone_id=${item.id}&name=${item.name}`)">
				<u-image :src="item.cover_image || ''" width="222rpx" height="296rpx"></u-image>
				<view class="li-text">{{item.name}}<span
						style="padding-left: 20rpx;font-size: 20rpx;color: #989696;">{{item.desc}}</span></view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {}
		},
		props: {
			list: {
				type: Array,
				default: (() => {
					return [];
				})
			}
		},
		methods: {}
	}
</script>

<style lang="scss">
	.zone {
		margin-top: 40rpx;

		.header {

			.li {

				.li-text {
					padding-top: 20rpx;
					font-size: 24rpx;
					color: #FFFFFF;
				}
			}
		}
	}
</style>